package com.jz.community.moduleshopping.goodsDetail.bean;

import com.jz.community.basecomm.bean.baseCommInfo.LinksInfo;
import com.jz.community.basecomm.bean.baseCommInfo.SelfInfo;
import com.jz.community.basecomm.bean.basePontageInfo.BasePostageInfo;

import java.util.List;

/**
 * Created by Tony.Fan on 2018/4/18 13:32
 * <p>
 * 商品详情
 */
public class GoodsDetailInfo {
    /**
     * id : 8
     * status : 0
     * createTime : 2018-04-17 04:58:01
     * title : 泡面
     * outline :
     * imgarr : ["http://goodspics.oss-cn-beijing.aliyuncs.com/1523940228968.jpg?Expires=1839300222&OSSAccessKeyId=LTAIyu9pVcg3oPg9&Signature=ad0SzMlBo2dK%2FOC1XbYX0lwb6nA%3D"]
     * showCategoryId : 23
     * showCategoryName : 社区币专区
     * saleChannel : 0
     * distributionType : 0
     * citycode : 029
     * postage : 0
     * buyType : 0
     * content : <h1>我是方便面</h1><ol><li>我是方便面</li><li>还是方便面</li><li>又是方便面</li></ol>
     * onLineType : 1
     * onLineDate : null
     * shop : {"id":1,"name":"良品公社","_links":"http://microservice.shoppingyizhan.com/shp/shops/1"}
     * skuProperties : [{"id":7,"status":null,"version":0,"createTime":"2018-04-17 04:58:01","updateTime":"2018-04-17 04:58:01","name":"规格","propertyValues":[{"id":9,"status":null,"version":0,"createTime":"2018-04-17 04:58:01","updateTime":"2018-04-17 04:58:01","propertyValue":"a"}],"sort":0}]
     * skuInfos : [{"id":9,"status":null,"version":86,"createTime":"2018-04-17 04:58:01","updateTime":"2018-04-20 01:40:22","price":5.5,"stock":2413,"code":"5","spStr":"7|9","spidStr":"规格|a"}]
     * _embedded : {"category":{"id":16,"name":"休闲零食","platformInfo":"http://microservice.shoppingyizhan.com/dic/code-table/2","_embedded":{"childCategory":[]},"links":{"self":{"href":"http://microservice.shoppingyizhan.com/gds/goods-categories/16"},"platformInfo":{"href":"http://microservice.shoppingyizhan.com/dic/code-table/2"}}},"assuranceServices":[{"id":29,"status":0,"version":0,"createTime":"2018-04-09 15:54:46","updateTime":"2018-04-09 15:54:46","name":"社区人自营品牌","links":{"self":{"href":"http://microservice.shoppingyizhan.com/gds/assuranceservice/29"}}}]}
     * links : {"self":{"href":"http://microservice.shoppingyizhan.com/gds/goods-infoes/8"},"content":{"href":"http://microservice.shoppingyizhan.com/gds/goods/content/8"},"showCategory":{"href":"http://microservice.shoppingyizhan.com/dic/code-tables/23"},"shopInfo":{"href":"http://microservice.shoppingyizhan.com/shp/shops/1"}}
     */
    private String id;
    private String status;
    private String createTime;
    private String title;
    private String outline;
    private String showCategoryId;
    private String showCategoryName;
    private String saleChannel;
    private String saleStartTime;
    private String saleCount;
    private int distributionType;
    private String limitedStartTime;
    private String limitedStopTime;
    private String currentTime;
    private String postage;
    private int buyType;
    private int source;
    private String content;
    private String smallProgram ;
    private String onLineType;
    private String onLineDate;
    private String pickupPoint;
    private ShopBean shop;
    private EmbeddedBeanX _embedded;
    private LinksBeanXX _links;
    private List<String> image;
    private List<String> tags;
    private String integral;
    private String cityCode;
    private String goodsUrlSale;
    private String qrCodeLink;
    private List<SkuPropertiesBean> skuProperties;
    private List<SkuInfosBean> skuInfos;
    private List<AssuranceServicesBean> assuranceServices;

    public List<AssuranceServicesBean> getAssuranceServices() {
        return assuranceServices;
    }

    public String getQrCodeLink() {
        return qrCodeLink;
    }

    public void setQrCodeLink(String qrCodeLink) {
        this.qrCodeLink = qrCodeLink;
    }

    public void setAssuranceServices(List<AssuranceServicesBean> assuranceServices) {
        this.assuranceServices = assuranceServices;
    }

    public String getSmallProgram() {
        return smallProgram;
    }

    public void setSmallProgram(String smallProgram) {
        this.smallProgram = smallProgram;
    }

    public String getGoodsUrlSale() {
        return goodsUrlSale;
    }

    public void setGoodsUrlSale(String goodsUrlSale) {
        this.goodsUrlSale = goodsUrlSale;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public int getSource() {
        return source;
    }

    public void setSource(int source) {
        this.source = source;
    }

    public String getSaleStartTime() {
        return saleStartTime;
    }

    public void setSaleStartTime(String saleStartTime) {
        this.saleStartTime = saleStartTime;
    }

    public List<String> getTags() {
        return tags;
    }

    public void setTags(List<String> tags) {
        this.tags = tags;
    }

    public String getIntegral() {
        return integral;
    }

    public void setIntegral(String integral) {
        this.integral = integral;
    }

    public String getLimitedStartTime() {
        return limitedStartTime;
    }

    public void setLimitedStartTime(String limitedStartTime) {
        this.limitedStartTime = limitedStartTime;
    }

    public String getLimitedStopTime() {
        return limitedStopTime;
    }

    public void setLimitedStopTime(String limitedStopTime) {
        this.limitedStopTime = limitedStopTime;
    }

    public String getCurrentTime() {
        return currentTime;
    }

    public void setCurrentTime(String currentTime) {
        this.currentTime = currentTime;
    }

    private String send_type;

    public String getSend_type() {
        return send_type;
    }

    public void setSend_type(String send_type) {
        this.send_type = send_type;
    }

    public String getPickupPoint() {
        return pickupPoint;
    }

    public void setPickupPoint(String pickupPoint) {
        this.pickupPoint = pickupPoint;
    }

    public String getSaleCount() {
        return saleCount;
    }

    public void setSaleCount(String saleCount) {
        this.saleCount = saleCount;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getOutline() {
        return outline;
    }

    public void setOutline(String outline) {
        this.outline = outline;
    }

    public String getShowCategoryId() {
        return showCategoryId;
    }

    public void setShowCategoryId(String showCategoryId) {
        this.showCategoryId = showCategoryId;
    }

    public String getShowCategoryName() {
        return showCategoryName;
    }

    public void setShowCategoryName(String showCategoryName) {
        this.showCategoryName = showCategoryName;
    }

    public String getSaleChannel() {
        return saleChannel;
    }

    public void setSaleChannel(String saleChannel) {
        this.saleChannel = saleChannel;
    }

    public int getDistributionType() {
        return distributionType;
    }

    public void setDistributionType(int distributionType) {
        this.distributionType = distributionType;
    }

    public String getPostage() {
        return postage;
    }

    public void setPostage(String postage) {
        this.postage = postage;
    }

    public int getBuyType() {
        return buyType;
    }

    public void setBuyType(int buyType) {
        this.buyType = buyType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getOnLineType() {
        return onLineType;
    }

    public void setOnLineType(String onLineType) {
        this.onLineType = onLineType;
    }

    public String getOnLineDate() {
        return onLineDate;
    }

    public void setOnLineDate(String onLineDate) {
        this.onLineDate = onLineDate;
    }

    public ShopBean getShop() {
        return shop;
    }

    public void setShop(ShopBean shop) {
        this.shop = shop;
    }

    public EmbeddedBeanX get_embedded() {
        return _embedded;
    }

    public void set_embedded(EmbeddedBeanX _embedded) {
        this._embedded = _embedded;
    }

    public LinksBeanXX getLinks() {
        return _links;
    }

    public void setLinks(LinksBeanXX links) {
        this._links = links;
    }

    public List<String> getImage() {
        return image;
    }

    public void setImgarr(List<String> image) {
        this.image = image;
    }

    public List<SkuPropertiesBean> getSkuProperties() {
        return skuProperties;
    }

    public void setSkuProperties(List<SkuPropertiesBean> skuProperties) {
        this.skuProperties = skuProperties;
    }

    public List<SkuInfosBean> getSkuInfos() {
        return skuInfos;
    }

    public void setSkuInfos(List<SkuInfosBean> skuInfos) {
        this.skuInfos = skuInfos;
    }

    public static class ShopBean {
        /**
         * id : 1
         * name : 良品公社
         * _links : http://microservice.shoppingyizhan.com/shp/shops/1
         */

        private String id;
        private String name;
        private String logo;
        private String shopTypeId;
        private int goodsTotals;
        private String _links;

        public String getShopTypeId() {
            return shopTypeId;
        }

        public void setShopTypeId(String shopTypeId) {
            this.shopTypeId = shopTypeId;
        }

        public int getGoodsTotals() {
            return goodsTotals;
        }

        public void setGoodsTotals(int goodsTotals) {
            this.goodsTotals = goodsTotals;
        }

        public String getLogo() {
            return logo;
        }

        public void setLogo(String logo) {
            this.logo = logo;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String get_links() {
            return _links;
        }

        public void set_links(String _links) {
            this._links = _links;
        }
    }

    public static class EmbeddedBeanX {
        /**
         * category : {"id":16,"name":"休闲零食","platformInfo":"http://microservice.shoppingyizhan.com/dic/code-table/2","_embedded":{"childCategory":[]},"links":{"self":{"href":"http://microservice.shoppingyizhan.com/gds/goods-categories/16"},"platformInfo":{"href":"http://microservice.shoppingyizhan.com/dic/code-table/2"}}}
         * assuranceServices : [{"id":29,"status":0,"version":0,"createTime":"2018-04-09 15:54:46","updateTime":"2018-04-09 15:54:46","name":"社区人自营品牌","links":{"self":{"href":"http://microservice.shoppingyizhan.com/gds/assuranceservice/29"}}}]
         */
        private CategoryBean category;

        public CategoryBean getCategory() {
            return category;
        }

        public void setCategory(CategoryBean category) {
            this.category = category;
        }

        public static class CategoryBean {
            /**
             * id : 16
             * name : 休闲零食
             * platformInfo : http://microservice.shoppingyizhan.com/dic/code-table/2
             * _embedded : {"childCategory":[]}
             * links : {"self":{"href":"http://microservice.shoppingyizhan.com/gds/goods-categories/16"},"platformInfo":{"href":"http://microservice.shoppingyizhan.com/dic/code-table/2"}}
             */

            private String id;
            private String name;
            private String platformInfo;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getPlatformInfo() {
                return platformInfo;
            }

            public void setPlatformInfo(String platformInfo) {
                this.platformInfo = platformInfo;
            }

        }


    }

    public static class LinksBeanXX {
        /**
         * self : {"href":"http://microservice.shoppingyizhan.com/gds/goods-infoes/8"}
         * content : {"href":"http://microservice.shoppingyizhan.com/gds/goods/content/8"}
         * showCategory : {"href":"http://microservice.shoppingyizhan.com/dic/code-tables/23"}
         * shopInfo : {"href":"http://microservice.shoppingyizhan.com/shp/shops/1"}
         */

        private ContentBean content;

        public ContentBean getContent() {
            return content;
        }

        public void setContent(ContentBean content) {
            this.content = content;
        }

        public static class ContentBean extends SelfInfo {
        }

    }

    public static class AssuranceServicesBean  {
        /**
         * id : 29
         * status : 0
         * version : 0
         * createTime : 2018-04-09 15:54:46
         * updateTime : 2018-04-09 15:54:46
         * name : 社区人自营品牌
         * links : {"self":{"href":"http://microservice.shoppingyizhan.com/gds/assuranceservice/29"}}
         */

        private String id;
        private String name;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

    public static class SkuPropertiesBean {
        /**
         * id : 7
         * status : null
         * version : 0
         * createTime : 2018-04-17 04:58:01
         * updateTime : 2018-04-17 04:58:01
         * name : 规格
         * propertyValues : [{"id":9,"status":null,"version":0,"createTime":"2018-04-17 04:58:01","updateTime":"2018-04-17 04:58:01","propertyValue":"a"}]
         * sort : 0
         */

        private String id;
        private String status;
        private String version;
        private String createTime;
        private String updateTime;
        private String name;
        private String sort;
        private List<PropertyValuesBean> propertyValues;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getVersion() {
            return version;
        }

        public void setVersion(String version) {
            this.version = version;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getSort() {
            return sort;
        }

        public void setSort(String sort) {
            this.sort = sort;
        }

        public List<PropertyValuesBean> getPropertyValues() {
            return propertyValues;
        }

        public void setPropertyValues(List<PropertyValuesBean> propertyValues) {
            this.propertyValues = propertyValues;
        }

        public static class PropertyValuesBean {
            /**
             * id : 9
             * status : null
             * version : 0
             * createTime : 2018-04-17 04:58:01
             * updateTime : 2018-04-17 04:58:01
             * propertyValue : a
             */

            private String id;
            private String status;
            private String version;
            private String createTime;
            private String updateTime;
            private String propertyValue;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }

            public String getVersion() {
                return version;
            }

            public void setVersion(String version) {
                this.version = version;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public String getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(String updateTime) {
                this.updateTime = updateTime;
            }

            public String getPropertyValue() {
                return propertyValue;
            }

            public void setPropertyValue(String propertyValue) {
                this.propertyValue = propertyValue;
            }
        }
    }

    public static class SkuInfosBean {
        /**
         * id : 9
         * status : null
         * version : 86
         * createTime : 2018-04-17 04:58:01
         * updateTime : 2018-04-20 01:40:22
         * price : 5.5
         * stock : 2413
         * code : 5
         * spStr : 7|9
         * spidStr : 规格|a
         */

        private String id;
        private String status;
        private String version;
        private String createTime;
        private String updateTime;
        private String price;
        private String discountPrice;
        private String icon;
        private String stock;
        private String code;
        private String spStr;
        private String spidStr;

        public String getIcon() {
            return icon;
        }

        public void setIcon(String icon) {
            this.icon = icon;
        }

        public String getDiscountPrice() {
            return discountPrice;
        }

        public void setDiscountPrice(String discountPrice) {
            this.discountPrice = discountPrice;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getVersion() {
            return version;
        }

        public void setVersion(String version) {
            this.version = version;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getStock() {
            return stock;
        }

        public void setStock(String stock) {
            this.stock = stock;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getSpStr() {
            return spStr;
        }

        public void setSpStr(String spStr) {
            this.spStr = spStr;
        }

        public String getSpidStr() {
            return spidStr;
        }

        public void setSpidStr(String spidStr) {
            this.spidStr = spidStr;
        }
    }
}
